// Learn cc.Class:
//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
// Learn Attribute:
//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html

cc.Class({
    extends: cc.Component,

    properties: {
        start_1:{
            default:null,
            type:cc.Node
        }
    },

    // LIFE-CYCLE CALLBACKS:

    onLoad:function () {
        this.StarInit();
    },

    start:function () {
        this.start_1.on("touchend",function (event) {
            cc.director.loadScene('MainScene');
        });
    },
    
    
    
    StarInit:function () {
        var one = cc.scaleTo(0.8,0.9);
        var two = cc.scaleTo(0.8,1);

        var seq = cc.sequence(one,two);
        var repart = cc.repeatForever(seq);
        this.start_1.runAction(repart);
    }

    // update (dt) {},
});
